package com.huige.wiki.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface DocMapperCust {
    @Update("update doc set view_count = view_count+1 where id = #{id}")
    public void increaseViewCount(@Param("id") Long id);

    @Update("update doc set vote_count = vote_count+1 where id = #{id}")
    public void increaseVoteCount(@Param("id") Long id);

    void updateEbookInfo();
}
